#ifndef __PING_FN__
#define __PING_FN__
/* analyse the send and response result*/
void statistics(int signo);
/* Calculate checksum */
unsigned short cal_chksum(unsigned short *addr,int len);
/* set ICMP package */
int pack(int pack_no);
/* send ICMP package */
void send_packet(void);
/* recver all the ICMP package*/
void recv_packet(void);
/* unpack ICMP package */
int unpack(char *buf,int len);
/* check whether the host is on line*/
int check_on_line(char *argv);
#endif
